package edu.ucsc.gameAI.conditions;

import edu.ucsc.gameAI.ICondition;
import pacman.game.Constants.MOVE;
import pacman.game.Game;

public class PacmanLastMove implements ICondition{
	
	MOVE lastMove; // the move we are double checking is the last move pacman made.
	
	public PacmanLastMove (MOVE move)
	{
		lastMove = move;
	}

	public boolean test(Game game) {
		return (lastMove == game.getPacmanLastMoveMade());
	}

}
